const basicConfigFiles = require.context('./', true, /index\.js$/)

let list = []

basicConfigFiles.keys().filter(item => item !== './index.js').forEach(item => {
  const config = basicConfigFiles(item).default

  list = list.concat(config)
})

list = list.sort((a, b) => a.order - b.order)

export default {
  type: 'basic',
  name: '基础组件',
  list
}